<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link  rel="stylesheet" type="text/css" th:href="@{/static/css/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/mystyle.css}"/>
    <script th:src="@{/static/js/jquery-1.11.3.min.js}"></script>
    <script th:src="@{/static/js/myjs.js}"/>
    <script th:src="@{/static/js/layer.js}"/>
    <script th:src="@{/static/js/layui.js}"></script>
    <script th:src="@{/static/js/vue.js}"></script>
</head>
<body>

<div class="layui-row allbg">
    <div class="layui-col-xs11 layui-col-xs-offset0.5">
        <div th:insert="~{admin/index::headsidebar}"></div>

        <div th:insert="~{admin/index::leftsidebar}"></div>
        <div class="layui-col-xs9 layui-col-sm8 layui-col-md8 layui-col-lg9 mainright">
            <div class="rightall">
                <form class="rightall-form"  th:action="@{/users/adduser}" method="post" lay-filter="example">

                    <div class="rightall-title">
                        <h1 style="display: inline;color: whitesmoke">添加用户</h1>
                    </div>
                    <div class="r-update">
                        <!--                        <input type="hidden" name="date" th:value="${date}">-->
                        <div>
                            <label class="layui-form-label">用户名:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="userName" id="bookName" lay-verify="title" class="layui-input">
                            </div>
                        </div>
                        <div>
                            <label class="layui-form-label">密码:</label>
                            <div class="layui-input-block" >
                                <input type="password" name="userPwd" lay-verify="title"  class="layui-input">
                            </div>
                        </div>
                        <div>
                            <label class="layui-form-label">确认密码:</label>
                            <div class="layui-input-block" >
                                <input type="password" name="userPwd2" lay-verify="title"  class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn" lay-submit="">注册</button>
                            <a type="button" th:href="@{/admin/list}" class="layui-btn" lay-submit="" lay-filter="demo1">取消</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <div th:insert="~{admin/index::footersidebar}"></div>
    </div>
</div>
<script>
    useSIDEBAR
</script>
</body>
</html>